package fr.paulmasson.jfreex.db.bo;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class BoProperty extends Bo implements Serializable {

	public String key;
	public String value;

	@Id
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	
	public static String getTableName() {
		return "BoProperty";
	}

	public static String[] getColumns() {
		return new String[]{ "Key","Value"}; 
	}
	
	public String getColumnValue(Integer i) {
		switch(i) {
			case 0:
				return getKey();
			case 1:
				return getValue();
		}
		return null;
	}
	
	public String toString() {
		return this.getKey()+":"+this.getValue();
	}
}
